import CryptoJS from "crypto-js";

export const encryptLongContent = (content) => {
    const key = CryptoJS.enc.Utf8.parse('NwQRAoAxltJF+J0oT48Pkj1oTyJCFqBv');
    const iv = CryptoJS.enc.Utf8.parse('aes_jm@61020900#');
    const encrypted = CryptoJS.AES.encrypt(content, key, {
        iv: iv,
        mode: CryptoJS.mode.CBC,
        padding: CryptoJS.pad.Pkcs7
    });

    return encrypted.toString();
}